{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% import "_macros.html" as macros %}
{% import "_my_wtf_macros.html" as my_wtf_macros %}

{% block title %}万屏时代OPC--短信查看(联通){% endblock %}

{% block panel_heading %}
  万屏时代OPC--短信查看(联通)
{% endblock %}

{% block panel_body %}

    <!--查询功能-->
    <form id="search-call-order-form"
          action="{{ url_for('axb_bp.lt_message_show') }}"
          method="post" class="form" role="form">
        {{ my_wtf_macros.form_field(form.sender, div_col=4, label_col=4, field_col=7)}}
        {{ my_wtf_macros.form_field(form.receiver, div_col=4, label_col=4, field_col=7) }}
        {{ my_wtf_macros.form_field(form.sms_result, div_col=4, label_col=4, field_col=7) }}
        {{ my_wtf_macros.form_field(form.transfer_time_begin, div_col=4, label_col=4, field_col=7) }}
        {{ my_wtf_macros.form_field(form.transfer_time_end, div_col=4, label_col=4, field_col=7) }}
        <div class="btn-group pull-right">
            <span>
                <button type="submit" class="btn btn-info"
                        id="query-user-btn">
                查询
            </button>
            </span>
        </div>
    </form>

    {% if pagination %}
    <div class="pagination">
        {{ macros.pagination_widget(pagination, 'axb_bp.lt_message_show', **url_kwargs) }}
    </div>
    {% endif %}

    <table id="cancel-attention-user-info-table" class="table table-bordered table-hover table-condensed table-striped">
        <thead>
            <tr>
                <th>发送者真实号码</th>
                <th>接收者真实号码</th>
                <th>发送时刻</th>
                <th>短信内容</th>
                <th>发送结果</th>
            </tr>
        </thead>
        <tbody>
            {% for i in items %}
            <tr>
                <td>{{ i.sender }}</td>
                <td>{{ i.receiver }}</td>
                <td>{{ i.transfer_time }}</td>
                <td>{{ i.sms_content }}</td>
                <td>{{ i.sms_result_display }}</td>
            </tr>
            {% endfor %}
        </tbody>
    </table>

    {% if pagination %}
    <div class="pagination">
        {{ macros.pagination_widget(pagination, 'axb_bp.lt_message_show', **url_kwargs) }}
    </div>
    {% endif %}

{% endblock %}

{% block scripts %}
{{ super() }}
{% endblock %}
